package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {

    /**
     * 新增口味
     * */
    @AutoFill(OperationType.INSERT)
    void insertFlavors(List<DishFlavor> dishFlavors);

    void deleteByIds(List<Long> ids);

    List<DishFlavor> selectByDishId(Long id);
}
